package org.apache.dolphinscheduler.api.service;

import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.ProductOrder;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Date;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author denggh
 * @since 2023-06-15
 */
public interface ProductOrderService extends IService<ProductOrder> {

    public Result queryProductOrderListPaging(User loginUser, Integer pageSize, Integer pageNo, Integer orderType,
                                              Integer payModel, Integer taskStatus, Integer payStatus);
    public Result getProductOrder(Integer id);
    public Result cancelProductOrder(User loginUser, Integer id);
    public Result countProductOrder(User loginUser, int type, Date startDate, Date endDate);
    public Result countProductOrderTop3(User loginUser);
}
